<%--
  Created by IntelliJ IDEA.
  User: 李小东
  Date: 2018/2/16
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>student_union</title>
    <jsp:include page="../common/jscss.jsp" flush="true"></jsp:include>
</head>
<body>
<div id="index_index_div" class="easyui-layout" data-options="fit:true" style="">
    <div data-options="region:'north'" style="height: 60px;">
        <div class="easyui-menubutton" data-options="menu:'#index_index_user_menu'" style="float: right;margin-right: 20px;">
            <img src="<%=basePath%>image/user.png" class="user-img"/>
            <span id="ui_index_username" class="user-name">admin</span>
        </div>
    </div>
    <div data-options="region:'south'" style="height: 50px;"></div>
    <div data-options="region:'west',href:'westUI.action'" style="width: 200px;"></div>
    <div data-options="region:'center'" style="">
        <div id="index_tabs" class="easyui-tabs" data-options="fit:true, border:false"></div>
    </div>
    <div id="index_index_user_menu" style="width:150px;">
        <div data-options="iconCls:'icon-redo'">Cut</div>
        <div>Copy</div>
        <div>Paste</div>
        <div id="index_user_exit">退出</div>
    </div>
</div>

<script type="text/javascript">
    var _index_index_js = {
        user_menu_init: function () {

        },
        btn_init: function () {
            $('#index_user_exit').on('click', function () {
                $.messager.confirm('确认','确认退出？',function(r){
                    if (r){
                        window.location.href='<%=basePath%>index.jsp';
                    }
                });

            });
        }
    }

    var index_idnex_app = (function () {
        $(function () {
            _index_index_js.btn_init();
        });
    })();
</script>
</body>
</html>
